<div class="discount-container">
	<div class="discount-info-table table-container" ng-show="data.discountList.length > 0">
		<div class="import-wrapper table-control">
			<button class="btn btn-primary" ngf-select="data.importDiscounts($files)">從文件導入</button>
		</div>
		<div class="table-body">
		<table class="table">
			<thead>
				<tr>
					<th>日期</th>
					<th>折扣</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="discountInfo in data.discountList track by $index">
					<td ng-bind="discountInfo.date"></td>
					<td ng-bind="discountInfo.discount"></td>
				</tr>
			</tbody>
		</table>
		</div>
		<div class="pagination-wrapper">
		<ul uib-pagination items-per-page="data.countPerPage"
				max-size="data.maxCount" total-items="data.discountList.length"
				ng-model="data.page" ng-change="data.changePage()"
				previous-text="前一頁" next-text="后一頁"></ul>
		</div>
	</div>
	<div ng-show="data.discountList.length === 0" class="no-discount-wrapper">
		<h2>沒有折扣信息</h2>
		<div>
		<a class="btn btn-primary" href="" ngf-select="data.importDiscounts($files)">請添加</a>
		</div>
	</div>
</div>